Passed
Push — master ( 2ca0e9...997ccc )
by Vitor
02:35
created

getSiteMetadataProvider.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
dl 0
loc 15
c 0
b 0
f 0
rs 10
nop 0
1
import { useStaticQuery, graphql } from 'gatsby';
2
3
export const getSiteMetadataProvider = () => {
4
    const { site } = useStaticQuery(graphql`
5
        query SiteMetaData {
6
            site {
7
                siteMetadata {
8
                    title
9
                    description
10
                    author
11
                }
12
            }
13
        }
14
    `);
15
16
    return site.siteMetadata;
17
};
18